package com.phiture.erp.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
@AllArgsConstructor
public enum ErpPurchaseDemandTypeEnum {
    RAW_MATERIAL_PROCUREMENT(0, "原材料采购"),
    PROCUREMENT_OF_FIXED_ASSETS(1, "固定资产采购"),
    LOW_VALUE_CONSUMABLES(2, "低值易耗品");

    private final Integer type;
    private final String desc;

    public static final Map<Integer, String> ERP_PURCHASE_DEMAND_TYPE_MAP = new HashMap<>(4);
    static {
        for (ErpPurchaseDemandTypeEnum typeEnum : values()) {
            ERP_PURCHASE_DEMAND_TYPE_MAP.put(typeEnum.type, typeEnum.desc);
        }
    }

}
